package hc.bre.data.strategy

import hc.bre.cmn.IDataDefOption
import hc.bre.cmn.ListOption
import hc.bre.cmn.struct.DataStructItem

@groovy.transform.CompileStatic
@groovy.transform.ToString(includeNames=true,includePackage=false)
class StrategyValueDef extends ListOption implements IDataDefOption{
	String type

	@Override
	public StrategyValueDef load(Map map) {
		super.load(map);
		type = map['type']
		return this;
	}

	DataStructItem toStructItem() {
		DataStructItem item = new DataStructItem();
		item.id = this.id;
		item.code = this.code;
		item.name =this.name;
		item.type = this.type;
		item.important = 3;
		return item;
	}
}
